using System;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using LuaInterface;

namespace Relay
{
	public sealed class RelayEngine
	{
		static readonly RelayEngine _instance = new RelayEngine();
		Game gameRef;
		GraphicsDeviceManager graphics;
		SpriteBatch sBatch;
		Lua lua;

		private RelayEngine()
		{}

		public static RelayEngine Instance
		{
			get { return _instance;}
		}

		public void Initialize(Game gRef, GraphicsDeviceManager graph)
		{
			gameRef = gRef;
			graphics = graph;
			sBatch = new SpriteBatch(graphics.GraphicsDevice);
			lua = new Lua();
		}

		public void Draw(GameTime gameTime)
		{
			graphics.GraphicsDevice.Clear(Color.CornflowerBlue);
			sBatch.Begin();
			sBatch.End();
		}

		public void Update(GameTime gameTime)
		{
			InputHandler.Update();
		}
	}
}

